package top.saodisheng.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Proxy;
import org.springframework.validation.annotation.Validated;

import javax.persistence.*;

/**
 * Description:
 *
 * @author 扫地生_saodisheng
 */
@Entity
@Table(name = "user")
@JsonIgnoreProperties(value = {"handle", "hibernateLazyInitializer"})
@Proxy(lazy = false)

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private int id;

    private String name;
    private String address;
}
